This script creates a small remote control that lets you move backwards and forwards through your history, or reload the current page for this window.
// Create and pop up a small window function PopIt() { popup = window.open("CONTROL1.HTM","popDialog", "height=60,width=156,scrollbars=no") // repeat for Macs popup = window.open("CONTROL1.HTM","popDialog", "height=60,width=156,scrollbars=no") // popup.opener points back to this window }
if (self.opener == null) { if (self.history.length > 1) { alert('There is no main window associated with this remote. '+ 'The remote control will now back up to the previous window.') self.history.go(-1) } else { alert('This remote control has no main window. '+ 'This remote will now close.') self.close() } }